package com.emep.changzhi.analyse.repository.systeminfo;

import com.emep.changzhi.analyse.entity.systeminfo.SysMenuInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;

import javax.transaction.Transactional;

/**
* @author Wangcc
* @Description: 菜单信息表持久层
* @date 2018/2/24 14:24
* @version V1.0
*/
public interface SysMenuInfoRepository extends JpaRepository<SysMenuInfo,Long> {

    SysMenuInfo findSysRoleInfoById(String id);

    @Modifying
    @Transactional
    Integer deleteById(String id);

    Page< SysMenuInfo> findAll(Specification< SysMenuInfo> spec, Pageable pageable);
}
